package com.demo.actionbardropdowntabnavdemo;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class MyFragment extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        TextView txtView = new TextView(getActivity());
        Bundle arg = getArguments();
        int num = arg.getInt("num");
        txtView.setText("This is page  " + num);
        txtView.setTextSize(25);
        return txtView;
        //return super.onCreateView(inflater, container, savedInstanceState);
    }
}
